package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.SysCheck;
import com.ruoyi.system.mapper.SysCheckMapper;
import com.ruoyi.system.service.ISysCheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 检测费用 服务层实现
 *
 * @author ruoyi
 */
@Service
public class SysCheckServiceImpl implements ISysCheckService {
    @Autowired
    private SysCheckMapper checkMapper;

    /**
     * 查询公告列表
     *
     * @param check 检测费用信息
     * @return 检测费用集合
     */
    @Override
    public List<SysCheck> selectCheckList(SysCheck check) {
        return checkMapper.selectNoticeList(check);
    }


    @Override
    public int insertCheck(SysCheck check) {
        return checkMapper.insertCheck(check);
    }

    @Override
    public SysCheck selectCheckById(Long checkId) {
        return checkMapper.selectCheckById(checkId);
    }

    @Override
    public int updateCheck(SysCheck check) {
        return checkMapper.updateCheck(check);
    }

    @Override
    public int deleteCheckByIds(Long[] checkId) {
        return checkMapper.deleteCheckByIds(checkId);
    }
}
